home *** CD-ROM | disk | FTP | other *** search
Wrap
package javax.swing; import java.awt.Image; import java.beans.BeanDescriptor; import java.beans.PropertyDescriptor; import java.beans.SimpleBeanInfo; import javax.swing.beaninfo.SwingBeanInfo; public class JRadioButtonMenuItemBeanInfo extends SwingBeanInfo { private static final Class classJRadioButtonMenuItem; // $FF: synthetic field static Class class$javax$swing$JRadioButtonMenuItem; static { classJRadioButtonMenuItem = class$javax$swing$JRadioButtonMenuItem != null ? class$javax$swing$JRadioButtonMenuItem : (class$javax$swing$JRadioButtonMenuItem = class$("javax.swing.JRadioButtonMenuItem")); } // $FF: synthetic method static Class class$(String var0) { try { return Class.forName(var0); } catch (ClassNotFoundException var2) { throw new NoClassDefFoundError(((Throwable)var2).getMessage()); } } private PropertyDescriptor createPropertyDescriptor(String var1, Object[] var2) { return super.createPropertyDescriptor(classJRadioButtonMenuItem, var1, var2); } public BeanDescriptor getBeanDescriptor() { return ((SwingBeanInfo)this).createBeanDescriptor(classJRadioButtonMenuItem, new Object[]{"preferred", Boolean.TRUE, "isContainer", Boolean.FALSE, "shortDescription", "<A description of this component>."}); } public Image getIcon(int var1) { switch (var1) { case 1: Image var5 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JRadioButtonMenuItemColor16.gif"); return var5 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentColor16.gif") : var5; case 2: Image var4 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JRadioButtonMenuItemColor32.gif"); return var4 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentColor32.gif") : var4; case 3: Image var3 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JRadioButtonMenuItemMono16.gif"); return var3 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentMono16.gif") : var3; case 4: Image var2 = ((SimpleBeanInfo)this).loadImage("beaninfo/images/JRadioButtonMenuItemMono32.gif"); return var2 == null ? ((SimpleBeanInfo)this).loadImage("beaninfo/images/JComponentMono32.gif") : var2; default: return super.getIcon(var1); } } public PropertyDescriptor[] getPropertyDescriptors() { return new PropertyDescriptor[]{this.createPropertyDescriptor("UIClassID", new Object[]{"shortDescription", "UIClassID"}), this.createPropertyDescriptor("accessibleContext", new Object[]{"shortDescription", "accessibleContext"})}; } }